import { type TableData as Instructor } from "./instructor"

export interface TableList {
  items: TableData[]
  total: number
}

export interface TableData {
  id: number
  title: string
  cid1: number
  cid2: number
  type: number
  hour_num: number
  is_use: number
  instructor_ids: string[]
  image_url: string
  instructors?: Instructor[]
  updated_at: string
}

export interface CreateOrUpdateTableRequestData {
  id?: number
  title: string
  cid1: number
  cid2: number
  type: number
  is_use: number
  hour_num?: number
  intro?: string
  detail?: string
  instructor_ids?: string[]
  image_url?: string
}
